﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CompositePattern
{
   public class Line:Graphics
    {
       public Line(string name):base(name)
       {

       }
        public override void Draw()
        {
            Console.WriteLine("画 "+Name);
        }

        public override void Add(Graphics g)
        {
            throw new NotImplementedException();
        }

        public override void Remove(Graphics g)
        {
            throw new NotImplementedException();
        }
    }
}
